Conditions | 1 |
Total Lines | 12 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { |
||
26 | |||
27 | @Get() |
||
28 | @WithName('crm_customers_list') |
||
29 | @Render('pages/customers/list.njk') |
||
30 | public async get(@Query() paginationDto: PaginationDTO) { |
||
31 | const pagination: Pagination<CustomerView> = await this.queryBus.execute( |
||
32 | new GetCustomersQuery(paginationDto.page) |
||
33 | ); |
||
34 | |||
35 | const table = this.tableFactory.create(pagination.items); |
||
36 | |||
37 | return { table, pagination, currentPage: paginationDto.page }; |
||
38 | } |
||
40 |